
#include "Matcher.h"

template<class I> class IdentityMatcher: public Matcher<I> {
public:

	IdentityMatcher(void* current) {
		this->current = current;
	}

	virtual ~IdentityMatcher() {
	}

	virtual bool matches(I* dataToCompare) {
		return this->current == dataToCompare;
	}

	virtual IdentityMatcher* setCurrent(void* current) {
		this->current = current;
		return this;
	}

private:
	void* current;
};

